package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

import lombok.Data;
import java.util.Objects;

/**
 * @desc KrObjectiveDto
 * @使用场景
 */
@Data
public class KrObjectiveDto extends BaseDto implements Serializable {

  /**
   * 指标ID
   */
  @ApiModelProperty("指标ID")
  private String objectiveId;

  /**
   * 指标简称
   */
  @ApiModelProperty("指标简称")
  private String objectiveShortName;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      KrObjectiveDto that = (KrObjectiveDto) o;
      return  objectiveId == that.objectiveId&&objectiveShortName == that.objectiveShortName;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), objectiveId,objectiveShortName);
    }

}
